import request from "@/js/request";
import qs from "qs";

export function getStaffInfo(data) {
    return request({
        url: "/port/emp/getActivityEmpByWxOpenId",
        method: "post",
        data: qs.stringify(data)
    });
}

export function uploadGroupCode(data) {
    return request({
        url: "/port/emp/saveCrowdWxCodeByOpenId",
        method: "post",
        headers: {
            "content-type": "multipart/form-data"
        },
        data: data.fd,
        params: {
            ...data.params,
            t: Math.random()
        }
    });
}

export function getStaffDataCount(data) {
    return request({
        url: "/port/activity/getStatistics",
        method: "post",
        data: qs.stringify(data)
    });
}

export function exportData(data) {
    return request({
        url: "/port/activity/getExcel",
        method: "post",
        data: qs.stringify(data)
    });
}
